package action;

import java.util.List;

import beans.Ter3gExpenses;
import beans.TerElecExpenses;

import dao.TerminalExpensesDao;


public class TerminalExpensesAction {

	private int terminalID;
	private int type;
	
	private List<Ter3gExpenses> ter3gExpenses;
	private List<TerElecExpenses> terElecExpenses;
	
	private TerminalExpensesDao expensesDao = new TerminalExpensesDao();
	
	public String terminalExpensesList() {
		if(type==1){
			terElecExpenses= expensesDao.terElecExpensesList(terminalID);
		}else if(type==2){
			ter3gExpenses= expensesDao.ter3gExpensesList(terminalID);
		}else{
			
		}
		return "success";
	}

	public int getTerminalID() {
		return terminalID;
	}

	public void setTerminalID(int terminalID) {
		this.terminalID = terminalID;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public List<Ter3gExpenses> getTer3gExpenses() {
		return ter3gExpenses;
	}

	public void setTer3gExpenses(List<Ter3gExpenses> ter3gExpenses) {
		this.ter3gExpenses = ter3gExpenses;
	}

	public List<TerElecExpenses> getTerElecExpenses() {
		return terElecExpenses;
	}

	public void setTerElecExpenses(List<TerElecExpenses> terElecExpenses) {
		this.terElecExpenses = terElecExpenses;
	}
	
}
